package homework;

import java.io.*;
import java.net.URL;

public class p2193 {


    public static void main(String[] args) throws Exception {

        String str=null;
        //统一资源定位www.qq.com
        URL url=new URL("http://www.baidu.com");
        //获取URL的输入流
        InputStream is=url.openStream();
        //构建缓存字符流
        BufferedReader bf=new BufferedReader(new InputStreamReader(is));

        //输出到屏幕
        while ((str=bf.readLine())!=null){
            System.out.println(str);
        }

    }
}
